package cn.lefull.service.impl;

import cn.lefull.service.ResumeService;
import org.activiti.engine.RuntimeService;
import org.activiti.engine.delegate.DelegateExecution;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: qijiang
 * @Date: 2018/11/1 11:36
 * @Description:
 */


@Service("resumeService")
public class ResumeServiceImpl implements ResumeService {

    @Autowired
    RuntimeService runtimeService;

    @Override
    public void storeResume(DelegateExecution execution) {
        Object applicantName = execution.getVariable("applicantName");
        System.out.println(applicantName);
        //#{ResumeService.storeResume(execution)}
        System.out.println("任务1已经执行.....................................");

    }
    @Override
    public void storeResume1() {
        //#{ResumeService.storeResume1()}
        System.out.println("任务2已经执行.....................................");

    }
}
